import Vue from 'vue'
import Router from 'vue-router'

//首页
import shouye from '@/components/shouye';
//财务管理
import finance from '@/components/finance/index';
//客户管理
import Client from '@/components/market/MyClient';
//销售订单申请
import ClientOrder from '@/components/market/MyClientOrder';
//采购申请管理
import requisition from '@/components/purchasing/requisition';
//采购计划
import plan from '@/components/purchasing/plan';
//出库管理
import removal from '@/components/removal/index';
//入库管理
import storage from '@/components/storage/index';
//商品管理
import inventory from '@/components/inventory/index';
//采购申请审核
import auditRequisition from '@/components/purchasing/auditRequisition';
//采购计划审核
import auditPlan from '@/components/purchasing/auditPlan';


//使用路由
Vue.use(Router)

var routes=[
  //首页
  {path:'/shouye',
    component:shouye
  },
  //商品
  {path:'/inventory',
  component:inventory
  },
  //财务
  {path:'/finance',
  component:finance
  },
  //客户订单
  {path:'/ClientOrder',
  component:ClientOrder,
  title:'客户订单'
  },
  {path:'/MyClient',
  component:Client,
  title:'客户管理'
  },
  //采购申请
  {path:'/requisition',
  component:requisition
  },
  //采购计划
  {path:'/plan',
  component:plan
  },
  //出库
  {path:'/removal',
  component:removal
  },
  //入库
  {path:'/storage',
  component:storage
  },
  //采购申请审核
  {path:'/auditRequisition',
  component:auditRequisition
  },
  //采购计划审核
  {path:'/auditPlan',
  component:auditPlan
  },

]

export default new Router({
  routes
})
